Re: Smappee Support?
Posted: Wednesday 20 July 2016 22:40
Thanks, Oeble.
For me, it's also almost working, lol. I was wondering why my script was not gathering data anymore. I think, since my Raspberry rebooted. Now I read your post, I start the script manually, and it started working again. So, I see the same issue as you do. But currently, I don't really have time to look into it. At least, now I know where to look.
I think, the cron user is maybe not the same or not the same rights as the user that I use for CLI login. I'm on Raspberry, so I use user pi. I need to look into it, with my limited Linux knowledge, lol.
For Watts and kWh, I'm using the Domoticz Dummy sensor "Electric (Instant+counter)", which can be added from the Hardware, Dummy, Create virtual sensors. I also added Voltage and Ampere (1 phase), and a Custom sensor for Cos Phi.
EDIT:
I debugged my script. Now it seems to initialize properly. Current script is pasted in my earlier post.
/tmp is a tmpfs partition, which exists in RAM, which is flushed on reboots. My script files are in RAM because I don't want to wear out my SD card by writing every minute. So, frequent reboots will mess up the log stats, unless you reboot just after midnight.
EDIT:
Meh.. still not working properly. Maybe it just doesn't run anymore, because the dummy sensors are going red. I'll reboot the raspi and see how it goes..
For me, it's also almost working, lol. I was wondering why my script was not gathering data anymore. I think, since my Raspberry rebooted. Now I read your post, I start the script manually, and it started working again. So, I see the same issue as you do. But currently, I don't really have time to look into it. At least, now I know where to look.
I think, the cron user is maybe not the same or not the same rights as the user that I use for CLI login. I'm on Raspberry, so I use user pi. I need to look into it, with my limited Linux knowledge, lol.
For Watts and kWh, I'm using the Domoticz Dummy sensor "Electric (Instant+counter)", which can be added from the Hardware, Dummy, Create virtual sensors. I also added Voltage and Ampere (1 phase), and a Custom sensor for Cos Phi.
EDIT:
I debugged my script. Now it seems to initialize properly. Current script is pasted in my earlier post.
/tmp is a tmpfs partition, which exists in RAM, which is flushed on reboots. My script files are in RAM because I don't want to wear out my SD card by writing every minute. So, frequent reboots will mess up the log stats, unless you reboot just after midnight.
EDIT:
Meh.. still not working properly. Maybe it just doesn't run anymore, because the dummy sensors are going red. I'll reboot the raspi and see how it goes..