won’t actually work as intended because the temp is read once before entering the loop, so the same temp will be sent every 5 mins without change, the reading of the temp needs to be in the loop eg
as for my comment about the url formatting, I was just thinking of using variables over hardcoding and avoiding casting and type errors by doing something like
6 months down the line, can you be certain that you’ve picked up all the occurrences of a value? What if two such things happen to have the same value now, but you find they need different values later? If they are not hardcoded, you don’t have to think back to know what the magic number was - it’s child’s play to update. If they’re hard coded, expect bugs.
Would you believe the only programming I’ve ever been taught formally was Algol at Uni and some years later a short course on Fortran 4?
quickly read the page on “inputs” then moved onto the posting issue that is resolved here…
Just navigating around emoncms now … wow what a mature feature rich platform
My next goal is to use this cheap pi/dallas temp probe combo with emoncms to monitor temperature at a elderly relatives flat and send me notifications when the daily temprature pattern suddenly changes … i.e. they might have had a fall … got a bit of a uphill challenge i think, but love a challenge. Like to learn with a task in mind, so boring learning from a book/course notes chapter by chapter
Hi, trying to remember …I think in the configure apache section the script resulted in a permission denied error, I had to sudo nano emoncms.conf and add the lines in manually (new installation of ubuntu LTS 32bit 16.04 server)
sudo sh -c "echo 'ServerName localhost' >> /etc/apache2/apache2.conf"
which is another way of getting around a sudo echo. But the printf and tee is the preferred method now, it is also used earlier in the guide for setting up the Redis extn’ for PHP.
I’m unable to test the emoncms.conf bit right now, but the apache2.conf bit certainly looks wrong to me.
[edit] I just found the discussion related to that change
so I’m guessing the change from using sudo su was not fully tested, looks like the heredoc was, but possibly not the sudo echo.