A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By Mikejstb
#18325 getting closer - both of these nodemcu firmware files make the u8g error go away -
nodemcu_float_dev_json_20150317.bin or nodemcu_int_dev_json_20150317.bin

but now I am getting this error and then a reboot-

192.168.2.128
Google IP: 64.233.179.104
Updating weather
{"coord":{"lon":-105.02,"lat":39.62},"sys":{"message":0.0405,"country":"United States of America","sunrise":1432467494,"sunset":1432520139},"weather":[{"id":500,"main":"Rain","description":"light rain","icon":"10d"}],"base":"stations","main":{"temp":8.84,"temp_min":8.84,"temp_max":8.84,"pressure":809.61,"sea_level":1020.74,"grnd_level":809.61,"humidity":100},"wind":{"speed":1.76,"deg":30.0006},"clouds":{"all":80},"rain":{"3h":0.17},"dt":1432487580,"id":5429032,"name":"Littleton","cod":200}
PANIC: unprotected error in call to Lua API (?:0: attempt to call method 'drawXBM' (a nil value))
ÆåVLþÊ⌦1—ˆŒˆHH™ÿ@Häø


looks like something about drawXBM is not happy.

I have put all of your files into the ESP here's the list-
init.lua 525 bytes
02d.MONO 480 bytes
clouds.xbm 480 bytes
03d.MONO 480 bytes
LLbin.lua 639 bytes
50d.MONO 480 bytes
13d.MONO 480 bytes
weatherStation.lua 2645 bytes
11d.MONO 480 bytes
09d.MONO 480 bytes
10d.MONO 480 bytes
01d.MONO 480 bytes
weatherStation.lc 2820 bytes
04d.MONO 480 bytes

I also tried your displayXBM.lua program and I get this error
dofile("displayXBM.lua")
displayXBM.lua:15: attempt to call method 'drawXBM' (a nil value)
>


It's good to see some progress
User avatar
By squix78
#18331 Hi Mike!

Looks to me as if you are using some older versions, first one that didn't have u8glib included and now one that has the library but the drawXBM is missing.
Have you tried this one:
https://github.com/nodemcu/nodemcu-firmware/releases/download/0.9.6-dev_20150406/nodemcu_float_0.9.6-dev_20150406.bin

If you are having problems with the memory you could also try my colleague Marcel's custom build tool to only include libraries that you need:
http://frightanic.com/nodemcu-custom-build/

Here is my config for the custom build (10 modules):
node
file
GPIO
WiFi
net
I²C
timer
UART
U8G
cJSON

You'll get an email with a download link, once the custom build has finished...

Good luck!
Cheers,
Dani

P.S.: once you get it to work you might want to do some "imperialistic";-) modifications to the code. Just remove &units=metrics from the URL and change the "C" in the output to an "F"
User avatar
By Mikejstb
#18342 Many thanks - that fw version works A-OK!

I'm very impressed with how much code you've been able to get in there with all the Lua memory limitations.

Yes, I'll do a little tweaking to see if I can display our temps in (f) here in rainy Denver.
I'm also going to try to get this to work with the SH-1106 type of 1.3" oled displays.
All of the .96" 1306 displays I have have got the upper few lines in yellow - doesn't look too good.
User avatar
By Mikejstb
#18355 the 1.3" display mostly works with the same settings as the .96" - just has a little junk on the right edge.
I'll dig some more and see if I can get the exact correct u8g display type.

IMG_2247.jpg


thanks again for the terrific project!
You do not have the required permissions to view the files attached to this post.