AndreasRef / InstaClock

Processing repo for a image based clock system

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nullPointerException

mainframe2017 opened this issue · comments

Hello Team

I am beginner in coding please help me out

I found error on running InstaClock.pde file with processing

error: nullPointerException

line no: 103

Hi
Did you change the path in line 24? The code in this repo loads it from my personal Dropbox (which only I have acces to), but you should load them from a location on your own device.

There’s same issue occurred after change image path. How many Minimum images required for display clock?
unnamed

your data path folder needs to have the same structure as this folder , not the data folder of "detectNewFilesInFolder" (which is just a work in progress sketch)

same issues occur after following as per your guidelines

I updated the data path in the code now, so it should work out of the box. Try running instaClock_0_1 with the updated code without changing anything, and see if that works?

Thank you brother
Its now loading all images and working fine but what was exact issue in previous code? also want to understand it mechanism how its work and how to add new images and what sequence of images I have to follow?

Also how it sync with real time clock?

No problem, glad it works. It was a path issue with loading the images, the "path" needs to be a folder one level above the "data" folder.

About the clock thing, it should sync with the seconds currently. If you want it to display hours and minutes you need to change those parts of the code. For reference see: processing clock example + minutes in processing reference

Btw, this is just a hobby project done without pay, closing this issue now. gotta go back to work...