Thanks all, You gave me the pointers on where to look and the issue was the sed command I was using, it as also updating group_altitude
sed -i "s:altitude =.*:altitude = $WEEWX_ALTITUDE:g" /home/weewx/weewx.conf Changing it to sed -i "s: altitude =.*: altitude = $WEEWX_ALTITUDE:g" /home/weewx/weewx.conf fixed the problem. I was also meaning to send you a note Vince as I did indeed create my User-Data script off of your script and was going to say I had an improvement for you over the sed commands you use. These now work and are sed -i 's: location =.*: location = "'"$WEEWX_NAME"'":g' /home/weewx/weewx.conf sed -i "s: longitude =.*: longitude = $WEEWX_LONGITUDE:g" /home/weewx/weewx.conf sed -i "s: latitude =.*: latitude = $WEEWX_LATITUDE:g" /home/weewx/weewx.conf sed -i "s: altitude =.*: altitude = $WEEWX_ALTITUDE:g" /home/weewx/weewx.conf sed -i "s: archive_interval =.*: archive_interval = 60:g" /home/weewx/weewx.conf The space after the colon is very important as I discovered. This is my User-Data script if you are interested, also sets up the environment and installs RDP so I can Remote Desktop in On Tuesday, January 19, 2021 at 6:23:34 PM UTC vince wrote: > Just a guess but did you mess with which units or locale settings ? > You're in the UK, correct ? > > If you can try a test, run my debian10 provisioner script (link) > <https://raw.githubusercontent.com/vinceskahan/weewx-vagrant/master/setup/debian10/provision.sh> > after > stopping weewx and moving your existing /home/weewx tree aside. This will > also install+configure nginx so you might want to comment out those parts > of the script if you already have your webserver installed+setup. > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/657da236-3d2c-4538-bfda-b636aa47df23n%40googlegroups.com.
UserData-Debian-WeeWX.sh
Description: application/shellscript