-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cound not start miflora.service after reboot raspberry. #8
Comments
after reboot Pi miflora service did'n start with openhab.
How to make miflora service start with the system?(I new with *nix system, but wona now how it work) Because after command: |
Hey there 👋 |
Hi,
config.ini:
|
Sorry, name of item on Russian, but it not influence on anything.
May be problem in |
In Mqtt dashboard i see message from miflora after reboot:
And I try to add line
Bellow pic. |
Not sure what's going on. You'll need to test some more yourself. On my testing system it works just fine. Maybe play with the "After=" line a bit. |
so, I found the way - add delay in start. I think broker or bluetooth or something services did not time to start working. [Service]
|
Interesting, but why did you close the issue? |
Hi, sorry. First comment on github. |
I see. No problem! ;) |
Hi, I have the same (?) issue with my RPi 0W on Raspbian Stretch Lite.
Adding the What am I doing wrong? |
@midijunk Sounds like you've added the option to the wrong section |
ah, right, my fault. It is now in the "Unit" section and doesnt throw an error but doesnt help either (with 180). Same issue on boot. Seems that the it doesnt wait for 3 minutes? its not so important for me because I dont restart the pi too often. |
Nevertheless we should solve this issue for other users. I'm still unclear about the actual reason for it. The MQTT broker should be up in seconds.... |
Do you know some python? Could you please open up the miflora-mqtt-daemon.py file and change these lines miflora-mqtt-daemon/miflora-mqtt-daemon.py Lines 154 to 160 in c275a27
to try:
mqtt_client.connect(config['MQTT'].get('hostname', 'localhost'),
port=config['MQTT'].getint('port', 1883),
keepalive=config['MQTT'].getint('keepalive', 60))
except Exception as e:
print_line('MQTT connection error. Please check your settings in the configuration file "config.ini"', error=True, sd_notify=True)
print_line(e, error=True, sd_notify=True)
sys.exit(1) You should then see a more helpful error message in the log. Please post it here. |
sure
looks like the wifi is not up in time? my coverage is really bad on the balcony |
Help me here: Why is the issue related to wifi? At least @Nickolay40 had his broker on the same Pi... |
sorry, just wild guessing (read socket, connection and my wifi is bad there). Im using mosquitto as a broker on another rpi with home assistant connected by ethernet to my fritzbox. |
Could you look into https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget ? |
edit:
old
|
Hi all, not sure if solved but if you run Raspbian Stretch you need: There is an change from "After=networking.target" (Debian / Raspbian 8) to "After=network.target" (in (Debian / Raspbian 9) |
No description provided.
The text was updated successfully, but these errors were encountered: