Mmm ok, Iāll have to do some more testing. I have been unable to re-create this.
We donāt all life in the US. Personally, I much prefer the European dates dd/mm/yyy. I vote to stick with the default local and let users change if they prefer. Do you know if the Pi does any autodetection of IP location to infer NTP time timezone? I donāt think it does. When we power up a new Pi with the pre built SD card here in the UK it gets the correct time from NTP. Do you know what happens in the US? Is it essential for you to set the timezone to make Emoncms work? What happens if you donāt set the timezone? / locale?
Ok, good point. However, node-RED does work fine (and is proven stable) with the flows that we use with the version of node currently installed. I have just installed the LTS version of node so I can test. However, it was a hefty 50Mb install. Iām not sure it here is much beneft to force this on all users.
Update: installing nodejs V6.9.1 has broken my nodered :-(. I get error
No it doesnāt change the timezone by IP, the default Raspbian OS image will be using āUTCā ie timezone not set. This will appear correct for UK users now until spring when BST kicks in as GMT is the same as UTC. if you use the date command it will tell you the timezone. Below is a stock Raspbian image before and after setting the timezone to āEurope/Londonā via raspi-config.
pi@raspberrypi:~ $ date
Tue 15 Nov 16:10:29 UTC 2016
pi@raspberrypi:~ $ sudo raspi-config
Current default time zone: 'Europe/London'
Local time is now: Tue Nov 15 16:10:42 GMT 2016.
Universal Time is now: Tue Nov 15 16:10:42 UTC 2016.
pi@raspberrypi:~ $ date
Tue 15 Nov 16:10:49 GMT 2016
Both emonhub and emoncms use UTC for timestamping data so setting the timezone should make no difference to collecting and persisting energy data (providing the UTC time is correct(ed) by NTP), the emoncms user timezone set in emoncms for the correct midnight and DST will allow data be displayed correctly etc. However the Piās logs including emonhub.log (not so sure about emoncms) will all be in local time according to the timezone, so they can be misleading unless the timezone is set or it is understood all logs are in UTC times.
Setting the locale would probably change the logfiles date/time formating too so there maybe some benefit for those used to the US date format, but the majority of the benefit of setting ālocaleā will be for āDesktop appsā which are absent from the emonSD.
EDIT - Although I can see the image creation guide mentions āsetting internationalizationā, I couldnāt find any reference to setting the Piās timezone in the āusers guideā but that could well be that I was looking in the wrong place. It would be worth while users setting the timezone at least to avoid confusion with logs down the line (especially in the summer āDSTā months)
I meant to check the en_US.UTF-8 UTF-8 box IN ADDITION TO the others. I did not want the US to be the only box.
The timezone is wrong with boot and NTP doesnāt seem to correct it. Once I set the raspi-config timezone and the My Account webpage timezone then all works OK. If the emonPi (or RaspPi) is suppose to be setting the timezone automatically then it is not working for me.
I donāt know your timezone but I am guessing it is British Time. Isnāt your timezone the same time as UTC during the winter months?? My timezone is CST (-6 hrs) now and CDT (-5 hrs) in the summer.
I am sure how you did the nodeJS update but version 6.9.1 may not work with Node-RED per the Node-RED google group. Only the LTS v4.6.x is fully supported.
Iāve seen the same nodered : Depends: nodes-legacy (>= 0.10) error and didnāt determine how to get fix it. I know running the update-nodejs-and-noderedcommand updates to LTS 4.6.x and does not have this error. I could not update the individual packages (i.e., npm, nodeJS, node red) manually and get the node-red system to work properly.
After running the update-nodejs-and-nodered command it looks like nodeJS 4.6.x (LTS) is installed via apt-get. And npm and Node-RED are installed via npm.
Thanks for explanation @pb66. That all makes sense.
Since settings the Pi timezone currently requires SSH itās an advanced operation which we cannot expect all users to have the ability to undertake. Itās good to know that itās not essential for Emoncms
Thanks for elaborating. Iāve had a look at the terminal pdf and as I feared:
This script will remove the pre-installed versions of node.js and Node-RED
and replace them with node.js 4.x LTS (argon) and the latest Node-RED from Npm.
Iām keen for the pre-built image to stick to using the apt version of nodered and nodejs. I think this is best for stability. As I mentioned before users can always update if they want. Maybe I could add the update steps to the oem_nodered readme to make it as easy as possible.
I am trying to use RASPBERRY PI ZERO and I have some issues comparing with May Image:
1- I canāt conect with USB wifi properly configuring interfaces file and wpa config file
2- I canāt shutdown directly, When I write āsudo shutdownā I program a shutdown for tomorrow. I donāt understand it
I am assuming the release image emonSD-07Nov16 is the same image as the emonSD-07Nov16 BETA image. And I do not need to re-download and re-image on a new SD card. Please confirm.