Submitted by TrystanLea on Mon, 09/03/2015 - 16:25.
Hello rmtucker, I've just been working on emoncms.org, its now running a different server configuration but as far as I can see most feeds are unaffected but I can see that your account has stopped. I think it may be your hardware though? can you check that its sending? perhaps give it a reset?
I have just checked my mates account (peternedsmith) and his went down at the same time??
Mark
»
Re: Is emoncms down
Submitted by TrystanLea on Mon, 09/03/2015 - 16:49.
I can now see a number of inactive feeds. although im unsure whats causing the problem. Do you know the api that your using to send the data to emoncms? is it:
Have you maybe altered the host address 80.243.190.58
»
Re: Is emoncms down
Submitted by TrystanLea on Mon, 09/03/2015 - 17:15.
thats it! the server is now running on nginx with a configuration that means 80.243.190.58/emoncms/input is now 80.243.190.58/input. Il see if I can change the configuration or add a work around
»
Re: Is emoncms down
Submitted by TrystanLea on Mon, 09/03/2015 - 17:35.
I've changed it back to apache2 until I work out the best solution for this. I can see that the accounts are now posting ok, thankyou very much for posting up with this and helping to find the issue.
@rmtucker. what version esp8266 are you running? I bought a esp-07 but haven't had time to play with it yet.
Interested to here how you get on. Do you run a local emonCMS server or emonHub? You could consider using a socket interfacer and send packets to a fixed IP/port on your LAN to avoid address issues, enable sending to multiple locations and get your data buffered and re-sent if not delivered first time too.
Re: Is emoncms down
Hello rmtucker, I've just been working on emoncms.org, its now running a different server configuration but as far as I can see most feeds are unaffected but I can see that your account has stopped. I think it may be your hardware though? can you check that its sending? perhaps give it a reset?
Re: Is emoncms down
Hi
I have reset the hardware but still nothing.
I have just checked my mates account (peternedsmith) and his went down at the same time??
Mark
Re: Is emoncms down
I can now see a number of inactive feeds. although im unsure whats causing the problem. Do you know the api that your using to send the data to emoncms? is it:
http://emoncms.org/input/post.json?node=1&csv=100,200,300&apikey=...
http://emoncms.org/input/post.json?csv=100,200,300&apikey=...
http://emoncms.org/input/post.json?json={power:200}&apikey=...
and what hardware are you using? is it the nanode by any chance?
Re: Is emoncms down
Trystan
I think it looks like the last example?
I will have to check.
The hardware is just an esp8266 module running nodemcu lua code.
Re: Is emoncms down
Trystan
Here is an exert from the esp8266
print("Sending data to emoncms.org")
conn=net.createConnection(net.TCP, 0)
conn:on("receive", function(conn, payload) print(payload) end)
conn:connect(80,'80.243.190.58')
conn:send("GET /emoncms/input/post.json?json={windsp:"..count.."}&apikey=3cf5c90696b8a371f5xxxxxxa491ac86 HTTP/1.1\r\n")
conn:send("Host: api.emoncms.org\r\n")
conn:send("Accept: */*\r\n")
conn:send("User-Agent: Mozilla/4.0 (compatible; esp8266 Lua; Windows NT 5.1)\r\n")
conn:send("\r\n")
conn:on("sent",function(conn)
print("Closing connection")
conn:close()
end)
conn:on("disconnection", function(conn)
print("Got disconnection...")
end)
count = 0
end
-- send data every X ms to emoncms
tmr.alarm(0, 10000, 1, function() sendData() end )
Re: Is emoncms down
Trystan
Have you maybe altered the host address 80.243.190.58
Re: Is emoncms down
thats it! the server is now running on nginx with a configuration that means 80.243.190.58/emoncms/input is now 80.243.190.58/input. Il see if I can change the configuration or add a work around
Re: Is emoncms down
I've changed it back to apache2 until I work out the best solution for this. I can see that the accounts are now posting ok, thankyou very much for posting up with this and helping to find the issue.
Re: Is emoncms down
Trystan
Thanks for that!
I am really suprised that there is no chatter on here about the esp8266.
It cost me £3.50 and i need nothing else to post data to emoncms.org
I am in the middle of adding a CT clamp to it so here goes.
Re: Is emoncms down
@rmtucker. what version esp8266 are you running? I bought a esp-07 but haven't had time to play with it yet.
Interested to here how you get on. Do you run a local emonCMS server or emonHub? You could consider using a socket interfacer and send packets to a fixed IP/port on your LAN to avoid address issues, enable sending to multiple locations and get your data buffered and re-sent if not delivered first time too.
Paul
Re: Is emoncms down
Paul
I am currently running an esp-01 just recording wind data.
But it has been re-flashed with the nodemcu firmware,and running a lua program.
It is connected directly to the anemometer and sending data direct to emoncms.org.
Works great for £3.50 and no extra hardware.
This is just a run up to my wind turbine inputs.
I also have an esp-12 which has a 1v analog input which i hope to connect to a ct clamp.
This is getting a little off topic so i will leave it at that.
But just as a footnote it has been running for a good few months with no problems.
Regards
Mark