Commit graph

282 commits

Author SHA1 Message Date
Teemu Ikonen 0644484db0 nmeasource: Disconnect from MM updates when quitting 2022-11-06 22:36:26 +02:00
Teemu Ikonen 1092aa3a31 Remove unused arg from SatelliteApp.update() 2022-11-06 21:55:19 +02:00
Teemu Ikonen 966633133a Set main_box sensitive to False if updates timeout 2022-11-06 21:55:19 +02:00
Teemu Ikonen 53a71b7fb8 widgets: Remove unused LabelBarChart widget 2022-11-06 21:55:19 +02:00
Teemu Ikonen 0374b9e7f7 Remove prints, add string arg to ModemError and log it 2022-11-06 21:55:19 +02:00
Teemu Ikonen 4717c146e4 Replace is_on_mobile_screen() with have_touchscreen() 2022-11-06 21:55:19 +02:00
Teemu Ikonen cb6a018cf4 setup.cfg: Set flake8 max-line-length=88 2022-11-06 21:55:19 +02:00
Teemu Ikonen 447ed22f56 nmeasource: Raise ModemError when modem is in a bad state (e.g. no SIM) 2022-11-06 21:55:19 +02:00
Teemu Ikonen ad381023ca nmea: Get the 'valid' key also from GSA (mode > 1) 2022-11-06 21:55:19 +02:00
Teemu Ikonen 247b7a5683 Define appname and app_id only once 2022-11-06 21:55:19 +02:00
Teemu Ikonen 1f1435ee2a Use Gio.Application signal handlers for startup, shutdown etc. 2022-11-06 21:55:19 +02:00
Teemu Ikonen 19db5edc9a Return to mainloop after calling Gtk.Application.quit()
The quit() function does not exit immediately.
2022-11-06 21:55:19 +02:00
Teemu Ikonen 940208e7a3 Make GErrors during init fatal 2022-11-06 21:55:19 +02:00
Teemu Ikonen e3290957c7 nmea: Prefilter NMEA sentences to please pynmea2 2022-11-06 21:55:19 +02:00
Teemu Ikonen 9b8f991e49 nmea: Remove dead code 2022-11-06 21:55:19 +02:00
Teemu Ikonen 28978d0906 README.md: Update with gnss-share info, add links 2022-11-06 21:55:19 +02:00
Teemu Ikonen 63f1dd652d Merge pull request 'Introduce NmeaSource based on gnss-share' (#5) from devrtz/satellite:gnss-share into main
Reviewed-on: https://codeberg.org/tpikonen/satellite/pulls/5
2022-11-06 20:54:27 +01:00
Evangelos Ribeiro Tzaras c32f7be5db application: Log exceptions when using the GnssShareNmeaSource 2022-11-04 09:02:06 +01:00
Evangelos Ribeiro Tzaras 78554c1afd Add plumbing enabling use of GnssShareNmeaSource 2022-11-04 09:02:06 +01:00
Evangelos Ribeiro Tzaras b76c8850c0 Add UnixNmeaSource and GnssShareNmeaSource
gnss-share is used to share a /dev/gnssX GPS character device and
provide access to the data over a unix socket.

gnss-share currently works with sensors from STM and is used on the
Librem5.
2022-11-04 09:02:06 +01:00
Evangelos Ribeiro Tzaras 7701e998e1 Allow specifying NmeaSource on application startup
This adds another startup option '-s' to select the source
and runs the source specific initialization routines.

This patch moves source specific bits into a init_X_Y_source() function
leaving the common bits in init_source()
2022-11-04 09:00:30 +01:00
tpikonen 58f3849108 Merge pull request 'Update to Gnome runtime 43' (#7) from ferenc/satellite:feat/flatpak-runtime-update into main
Reviewed-on: https://codeberg.org/tpikonen/satellite/pulls/7
2022-10-25 20:04:00 +02:00
Ferenc Géczi f7c85c2dd1 Update to Gnome runtime 43
Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
2022-10-25 00:00:00 +00:00
Teemu Ikonen c108403b89 Only connect edge-overshot signal when on mobile screen
Add function is_on_mobile_screen(widget) which determines the size of
the monitor on which the widget (or it's parent) is realized.

Use this function to determine whether to show a pulley menu on top edge
overshot or not.
2022-09-07 17:27:14 +03:00
Teemu Ikonen 10b992dcb7 Do not request new data when updating barchart with gestures 2022-09-07 16:05:40 +03:00
Teemu Ikonen b121db5477 ReplayNmeaSource._really_get(): Return None if NMEA file could not be read 2022-09-07 15:34:43 +03:00
Teemu Ikonen 914015cd33 update(): Return if we get() empty list or None as nmeas 2022-09-07 15:33:16 +03:00
Teemu Ikonen 9f93eb7b1a Display exception messages correctly 2022-09-07 15:28:31 +03:00
Teemu Ikonen ba2c884d68 Release 0.2.8 2022-09-07 10:28:28 +03:00
Teemu Ikonen ed16495fe9 Add SPDX-License-Identifier headers everywhere
Fixes #6.
2022-09-06 19:01:25 +03:00
Teemu Ikonen f717473b2a README.md: Add 'License' section 2022-09-06 18:00:26 +03:00
Teemu Ikonen e59179ed34 data/appdata.xml: Fix license to to GPL-3.0-only 2022-09-06 18:00:26 +03:00
Teemu Ikonen 5ac3b9471f Adapt ReplayNmeaSource to NmeaSource changes 2022-09-06 18:00:26 +03:00
Teemu Ikonen fd3289932d Refactor NmeaSource class
Make update_callback a mandatory argument to NmeaSource.__init__().

Adapt ModemManagerNmeaSource to changes in the superclass.
2022-09-06 18:00:26 +03:00
Teemu Ikonen 62724f6194 Keep timeout_cb running
Return True from the fallback timeout callback in order to keep it
running. This makes the 'Age of update' field work as it should.
2022-09-06 17:13:54 +03:00
Teemu Ikonen a31bdd7ddf flake8 2022-08-29 10:46:44 +03:00
Teemu Ikonen 6519e08b24 quectel.py: Handle exceptions on modem.Command() calls
Fixes #4.
2022-08-29 10:37:00 +03:00
Teemu Ikonen cbc11f3b14 Release 0.2.7 2022-08-10 11:10:45 +03:00
Teemu Ikonen f1c7f10f10 Fix menu popup by edge-overshot 2022-08-10 11:10:39 +03:00
Teemu Ikonen 6d8087f839 Add a CSS file with larger padding on menubutton labels 2022-08-09 15:48:48 +03:00
Teemu Ikonen 3692ce6b68 Update copyright years in About dialog 2022-08-09 15:48:48 +03:00
Teemu Ikonen 6ef233976c Fall back to $HOME/Documents as XDG Docdir, use os.path.join 2022-08-08 23:43:46 +03:00
Teemu Ikonen d85f0d0b73 Show app menu on upper edge-overshoot on data window 2022-08-08 16:42:03 +03:00
Teemu Ikonen 19f386be91 flatpak: Update runtime, remove '--use-feature=in-tree-build' 2022-07-22 20:51:58 +03:00
Teemu Ikonen fe61d6a47d Update flatpak/python3-requirements.json 2022-07-22 20:49:27 +03:00
Teemu Ikonen 499b89f35f README.md: Add info on the flathub package
Fixes #2.
2021-12-08 11:14:56 +02:00
Teemu Ikonen aca22f65f2 README.md: Add python 3.6+ dependency info 2021-12-08 11:14:21 +02:00
Teemu Ikonen 4dd8941071 nmeasource: Try to avoid Setup in bad modem states 2021-12-03 17:53:21 +02:00
Teemu Ikonen 07607de6d7 nmeasource: Print modem State before Setup 2021-12-03 16:29:50 +02:00
Teemu Ikonen f9ebbd5431 nmeasource: Don't print exceptions 2021-12-03 16:29:03 +02:00