Hardware: Enviro board mounted on a Raspberry Pi Zero 2W running headless over ssh from a Linux Mint PC. Power socket connected to USB2 on same PC.
Status: Examples work in supplied virtual environment after removing calls to sensors that are not present. If i edit bashrc or use cron -e, i can get the virtual environment and some code to run on bootup. But i am so far unable to get any of the data.
What i have tried:
MQTT: Installed but my Python experience is limited to playing “The Farmer Was Replaced” for a year.
Node-Red: Supposed to be like MQTT with a graphic flowchart interface. Fun, but could not access any data.
InfluxDB & Grafana: Followed Hel’s tutorial but it is out of date. See other thread. Even after following instructions on the influxdata site, i still get “NO_PUBKEY D8FF8E1F7DF8B07E” error. Influxdata says to check where certain files and folders are:
YES THIS EXISTS: /etc/apt/trusted.gpg.d/influxdata-archive_compat.gpg
YES, this has been removed: /etc/apt/trusted.gpg.d/influxdb.gpg
Ahh, but the key is here: /home/user/influxdata-archive_compat.key
Don’t know what to do with this misplaced key.
Adafruit - Didn’t want to go this route since i already have a hundred subscriptions to keep track of. Still, there was another nice tutorial by Hel. It says to edit the config.py file to add your Adafruit login info. Where o where is this file? Using ssh to communicate means i must look up everything. Using the find command, the only matches were in the virtual environment. Then i used the original microSD card that my neighbor flashed, the one with the guest access wifi password. Ok, now i can use a file manager with a GUI. It found around 12 config.py files, none of them have the provisioning data i need to edit.
Another suggestion was to use Thonny. Installed but it cannot communicate with the Pi OS. Tried it both from my host PC and from ssh. Latter did not work at all until i found this command: ssh user@address -X thonny. Finally, this worked! Lower right says /usr/bin/python3, Shell says Python 3.11.2. Upper right says “Switch to regular mode”. Hmmm, could not Switch, Stop, Quit or X out. Had to Ctrl-C in Terminal to exit. Tried to reenter later: “Delegated to an existing Thonny instance. Exiting now.” Power cycle, no difference. Another dead end.
And finally the tutorial suggested a hard reset to force it into provisioning mode. Raspberry Pi Zero 2W has no reset button. This would require undoing all the edits i have made and flashing the card yet again. If this is truly my only remaining option, i will return the gift.
I would rather go the InfluxDB route. It would be nice to get Thonny working but i am ok using that awful nano text editor. And i suspect that provisioning info is no longer written to a config.py file.