Coder Social home page Coder Social logo

airrohr-firmware-flasher's People

Contributors

botihu avatar deekey avatar dependabot[bot] avatar dirkmueller avatar informatic avatar ladislavm avatar luchtwachtersdelft avatar petarkir2000 avatar phaze-iii avatar pjgueno avatar qwertie- avatar ricki-z avatar stsdc avatar thepapermen avatar vmaksymenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

airrohr-firmware-flasher's Issues

Add configuration of AP credentials during flashing

Feature request:
Add possibility to flash AP username and password.
And maybe advanced mode to flash other information:
credentials for other data hosts (feinstaubapp, aircms and others)

If one can flash AP credentials in user mode then the configuration of a station will be easier. No need to run station in AP mode to enter AP credentials.

Serial debug message view

If this tool could show the serial debug messages, this would help many beginners to directly check the status, config, current IP etc.

Flasher won't find my ESP8266

I tried all my USB ports with three different cables. but the flasher keeps telling that no boards are found.
I even tested it on two PCs (Manjaro Linux and Windows 10) but nothing works.

Suddenly cannot connect to wifi (or maybe reboot?)

All of a sudden the sensor stopped working. I got it from the balcony, checked if all pins are properly connected, then rebooted and instead of connecting to the wifi network again the sensor created it's own network (airRohr.). When I enter http://192.168.4.1/config, type wifi credentials and press the restart button nothing happens, the airrohr network stays online and the sensor is not connected to the wifi network. Any idea what I am doing wrong and how to fix it? Sensor has been online for more than a year without any problems.

Add ESP32 support

We need to add support for ESP32 based board flashing in order to support Sensor Kit 2.

Not Working with sensor.community via HTTPS

Today I see my data doesn`t send to sensor.community, but to others APIs (in example: Madavi, OpenSenseMap) works ok. I change from HTTPS to HTTP and now works, but can repair for works with https?

failed config / IP unset

I flashed the latest.bin (and also latest_nl.bin, latest_de.bin) as described here:
https://github.com/opendata-stuttgart/airrohr-firmware-flasher
But the webserver / Acces Point doesn't seem to start up. The log after pressing the reset button (I tried it several times):

airRohr: NRZ-2020-129/EN
mounting FS...
failed to open config file.
output debug text to displays...
Connecting to Freifunk-disabled
........................................
output debug text to displays...
Starting WiFiManager
AP ID: airRohr-XXXXXXXX
Password: 
scan for wifi networks...
AP Password is: 
Starting Webserver... (IP unset)

There is no Access Point / Wifi network visible. Also building with the sensors-software itself (using Arduino IDE) and modifying ext_def.h didnot help. Did I need to set a config? I didn't found any description.

Error msg after connection to ESP8266 was established

I have an issue while flashing, the tool says "Timed out waiting for packet content" after the connection to the ESP8266 chip was established. The CH340 driver under Win10 is properly installed, the COM port automatically detected. Any idea what to do?

Add note about serial port permissions on Linux

User needs to be in dialout group on Ubuntu/Debian-based systems to be able to interact with serial ports. Running binary as root (eg. using sudo) would work, but was discouraged by PyInstaller developers due to some possible temporary directory permissions security issues in case of --onefile builds, last time I've looked into this.

Firmware flasher crashes on Ubuntu 22.04

Hello. I just downloaded the latest stable release of the airRohr flasher and I'm struggling to run it on Ubuntu 22.04 LTS. Can you advise me what to do? Not sure where the core was dumped (I can't find it in the cwd) but I'll share it if you tell me where to look for it.

adam@jellyfish:~/Downloads$ ./airRohr-firmware-flasher-0.3.3-Ubuntu_20.04_amd64 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

(airRohr-firmware-flasher-0.3.3-Ubuntu_20.04_amd64:80153): GLib-GIO-ERROR **: 14:14:26.422: Settings schema 'org.gnome.settings-daemon.plugins.xsettings' does not contain a key named 'antialiasing'
Trace/breakpoint trap (core dumped)

Custom config file upload

Would it be feasible to create and upload a custom config to the SPIFF?
This way wifi and own API settings could be pre-defined.
Options for the GUI that come to my mind are with a checkbox or an additional button (upload custom config).
Editing a JSON (from a template) would be fine, I guess.

"loading firmware list" does not work (firmare.sensor.community down?)

I'm using airRohr-firmware-flasher-0.3.0-Ubuntu_18.04_amd64 (and I have only used this platform).

About three weeks ago I built my 1st sensor and downloading the latest firmware worked like a charm.

Today, I tried to do the same. Two things went wrong.

  1. This link: https://firmware.sensor.community/airrohr/flashing-tool/airRohr-firmware-flasher-0.3.0-Ubuntu_18.04_amd64 does not work anymore. I had to download the flashing tool from this GitHub.

  2. The flasher tool I managed to download from this GitHub did not load the firmware list. The "Loading firmware list..." message kept showing up at the bottom.

I still managed to get the sensor up and running because of this video that the maintainer made: https://d.inf.re/b/ffc776f1e74faa0ca4f50842e37ec567.webm <-- doing it this way flashed the firmware beautifully and the sensor is now up and running.

Additional dependencies for Linux

I ran the firmware flasher under Linux Debian 10.0 bullseye/sid and found I needed at least the following dependencies alongside the ones mentioned in README.md:

  • pyqt5-dev-tools

And the following python libs (installed with sudo pip install XXX):

  • esptool
  • zeroconf

Certifcate for firmware.sensor.community expired

The certifcate for the website has expired on 19th February, thus the tool can't download the latest firmware.
It would be cool to be able to manually add a firmware file, as it looks like it's not the first time this error has broken the tool.

Add ESP Web Tools support

Just build my first kit and used the Airrohr Firmware Flasher for this. Works really easy! But thought I could mention the FOSS project ESP Web Tools. It lets you flash an ESP right from your website with Chromium-based browsers. Projects like WLED, Tasmota, ESPEasy and ESPHome already implemented this.

I work as an UX designer for Nabu Casa, the people that work on ESP Web Tools, Home Assistant and other open source projects. Feel free to ask some questions!

Error when using undescore character in build name

Rename the build file name to include underscore sign.
Flashing will not start. There will be an error:

Traceback (most recent call last):
File "/home/informatic/Projects/luftdaten-tools/luftdatentool/utils.py", line 32, in run
File "/home/informatic/Projects/luftdaten-tools/luftdaten-tool.py", line 259, in flash_board
AttributeError: 'NoneType' object has no attribute 'startswith'
ERROR:root:Unhandled exception
Traceback (most recent call last):
File "/home/informatic/Projects/luftdaten-tools/luftdatentool/utils.py", line 32, in run
File "/home/informatic/Projects/luftdaten-tools/luftdaten-tool.py", line 259, in flash_board
AttributeError: 'NoneType' object has no attribute 'startswith'

Segfault on Fedora 31

Attempted to download the prebuilt binary and run it but got this error:

$ '/home/user/Downloads/luftdaten-tool.linux-x64' 
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
/usr/lib/gio/modules/libdconfsettings.so: wrong ELF class: ELFCLASS32
Failed to load module: /usr/lib/gio/modules/libdconfsettings.so
GLib-GIO-Message: 21:05:40.956: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

(luftdaten-tool.linux-x64:8832): GdkPixbuf-WARNING **: 21:05:40.982: Cannot open pixbuf loader module file '/usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache': No such file or directory

This likely means that your installation is broken.
Try running the command
  gdk-pixbuf-query-loaders > /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders.cache
to make things work again for the time being.
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/fonts.conf", line 6: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/fonts.conf", line 6: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/fonts.conf", line 7: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/fonts.conf", line 9: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/10-hinting-slight.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/25-unhint-nonlatin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/25-unhint-nonlatin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/25-unhint-nonlatin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/25-unhint-nonlatin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/25-unhint-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/25-unhint-nonlatin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/25-unhint-nonlatin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/30-metric-aliases.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/40-nonlatin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/45-generic.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/45-latin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/49-sansserif.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/50-user.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/51-local.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/60-generic.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/60-latin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 34: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 35: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/65-fonts-persian.conf", line 36: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/65-nonlatin.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 8: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/69-unifont.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/69-unifont.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/80-delicious.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/80-delicious.conf", line 6: invalid attribute 'version'
Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 4: unknown element "its:rules"
Fontconfig warning: "/etc/fonts/conf.d/90-synthetic.conf", line 5: unknown element "its:translateRule"
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'translate'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 5: invalid attribute 'selector'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'xmlns:its'
Fontconfig error: "/etc/fonts/conf.d/90-synthetic.conf", line 6: invalid attribute 'version'
Fontconfig error: Cannot load config file from /etc/fonts/fonts.conf
Fontconfig warning: FcPattern object width does not accept value [70 100)
Segmentation fault (core dumped)

Flashing the board only (without sensors). This should work?

Hello,

As I understood, the software needs to be flased on the ESP8266 before the sensors are all assembled and mounted in their plance in the drainage pipe...

So, I tried to flash the firmware on the bare board itself, without attaching the other sensors (feinstaub, temperature, ...), and as I uderstood, by default, I should be presented with an SSID named Feinstaubsensor-(board ID number). Unfortunately this does not happen even if the flash was sucessful, according to the application. Is this normal, does the sensors attached need to initialize the firmware then I get the SSID, or there is something wrong with the flash/board?

Restart CPU after flashing

Currently need to restart device by pressing restart button or power of/on.
Please add an automatic restart after flashing.

Please add empty image to the list of available firmware versions

On some of my esp8266 devices occured errors with the WiFi connection. Until now, I always solved it by flashing an empty image on the device like in this tutorial by @ricki-z :

https://github.com/opendata-stuttgart/meta/wiki/EN-Installing-firmware#rm-config-variant-2

It would be nice, if your tool could handle that in the future. The image file of the empty file system can be found here:

https://github.com/opendata-stuttgart/sensors-software/raw/master/airrohr-firmware/ppd42ns-wificonfig-ppd-sds-dht.spiffs.bin

Thanks for your work!

Problem to detect new sensors

The problem comes from here:
`
def on_zeroconf_discovered(self, name, address, info):

    """Called on every zeroconf discovered device"""
    
    # if (name.lower().startswith('feinstaubsensor')
    
    #         or name.lower().startswith('nam')
    
    #         or name.lower().startswith('smogomierz')
    
    #         or name.lower().startswith('airrohr')
    
    #         or name.lower().startswith(self.customNameSave)):
    
    item = QtWidgets.QListWidgetItem('{}: {}'.format(address, name.split('.')[0]))
    
    item.setData(ROLE_DEVICE, 'http://{}:{}'.format(address, info.port))
    
    self.discoveryList.addItem(item)`

Feel free to help us.

Settings erasure option

Option to erase whole flash memory on target board is needed, in case someone loses their authentication password or just settings get corrupted. (occured at least once during workshops in Warsaw)

Discovery:

I get the following error/traceback while trying to discover sensors:

ERROR:root:Unhandled exception
Traceback (most recent call last):
  File "/home/user/soft/luftdaten/airrohr-firmware-flasher/luftdatentool/utils.py", line 32, in run
    self.target(*self.args, **self.kwargs)
  File "/home/user/soft/luftdaten/airrohr-firmware-flasher/luftdatentool/workers.py", line 47, in target
    self.zc = zeroconf.Zeroconf()
  File "/home/user/.virtualenvs/airrohr-firmware-flasher/local/lib/python3.6/site-packages/zeroconf.py", line 1696, in __init__
    socket.inet_aton(_MDNS_ADDR) + socket.inet_aton(i))
OSError: [Errno 105] No buffer space available

Any idea what this is about or if I am missing something on my system?
"buffer space missing" sounds like hardware/driver issues to me, as if it is about allocation by the system.

I tried the following solution unsuccessfully (on Ubuntu 18.04):
https://stackoverflow.com/questions/46727211/oserror-105-no-buffer-space-zeroconf

sudo -i
echo 20 >/proc/sys/net/ipv4/igmp_max_memberships
echo 10 >/proc/sys/net/ipv4/igmp_max_msf
systemctl restart avahi-daemon

Any more things that could be tried?

Flasher firmware install packages for Ubuntu not working - install impossible

(.deb extension missing in original download file!)

sudo apt-get install ./airRohr-firmware-flasher-0.3.0-Ubuntu_18.04_amd64.deb 
Reading package lists... Error!
E: Sub-process Popen returned an error code (2)
E: Encountered a section with no Package: header
E: Problem with MergeList /home/dusoft/Downloads/airRohr-firmware-flasher-0.3.0-Ubuntu_18.04_amd64.deb
E: The package lists or status file could not be parsed or opened.
sudo dpkg -i ./airRohr-firmware-flasher-0.3.0-Ubuntu_18.04_amd64.deb 
dpkg-deb: error: './airRohr-firmware-flasher-0.3.0-Ubuntu_18.04_amd64.deb' is not a Debian format archive
dpkg: error processing archive ./airRohr-firmware-flasher-0.3.0-Ubuntu_18.04_amd64.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 ./airRohr-firmware-flasher-0.3.0-Ubuntu_18.04_amd64.deb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.