aysark / dashing-timeline

Stylish timeline widget for Dashing.io
MIT License
28 stars 7 forks source link

timeline_data.yml #13

Open Maxoulapince opened 5 years ago

Maxoulapince commented 5 years ago

Hello, I installed your timeline and it is displayed, however I do not know wher i put the file "timeline_data.yml" and I do not have dates. Where should I paste this file?

Thank you Maxime

Maxoulapince commented 5 years ago

I need to modifie the lines ? MAX_DAYS_OVERDUE = -20 MAX_DAYS_AWAY = 90

config_file = File.dirname(File.expand_path(FILE)) + '/home/pi/dashboard_project/assets/javascripts/timeline_data.yml'

aysark commented 5 years ago

Leave the file timeline_data.yml where it is in the repo, no need to change its location.

Your change:

config_file = File.dirname(File.expand_path(FILE)) + '/home/pi/dashboard_project/assets/javascripts/timeline_data.yml'

Is not right. It should be:

config_file = File.dirname(File.expand_path(__FILE__)) + '/../timeline_data.yml'
Maxoulapince commented 5 years ago

Hello, Thank you for your return about my question.

I tried the method but I do not arrive at the date of the day. Not the rest.

I redid a basic configuration.

Maxim