{"id":14955388,"url":"https://github.com/gogvale/solar_panel_stats","last_synced_at":"2026-02-25T09:32:41.341Z","repository":{"id":169898514,"uuid":"486327344","full_name":"gogvale/solar_panel_stats","owner":"gogvale","description":"Check solar panel power generation by hour, week and month.","archived":false,"fork":false,"pushed_at":"2022-04-29T17:28:03.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T09:43:00.645Z","etag":null,"topics":["chart","chartkick","figaro","groupdate","httparty","iot","rails","rails7","raspberry-pi","ruby","ruby-on-rails","solar-panel","sqlite3","whenever"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gogvale.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-27T19:36:32.000Z","updated_at":"2022-04-29T18:16:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"5fef4d41-322a-4f9d-a023-27db39ce4d32","html_url":"https://github.com/gogvale/solar_panel_stats","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":0.25,"last_synced_commit":"23e0e3928cb564d4283fc190b68da1e554c32fa9"},"previous_names":["gogvale/solar_panel_stats"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/gogvale/solar_panel_stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogvale%2Fsolar_panel_stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogvale%2Fsolar_panel_stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogvale%2Fsolar_panel_stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogvale%2Fsolar_panel_stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gogvale","download_url":"https://codeload.github.com/gogvale/solar_panel_stats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gogvale%2Fsolar_panel_stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29816054,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chart","chartkick","figaro","groupdate","httparty","iot","rails","rails7","raspberry-pi","ruby","ruby-on-rails","solar-panel","sqlite3","whenever"],"created_at":"2024-09-24T13:11:05.153Z","updated_at":"2026-02-25T09:32:41.320Z","avatar_url":"https://github.com/gogvale.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Solar Panel Stats\n\nCheck solar panel power generation by hour, week and month.\n\n\n## Hardware\n\u003cimg width=\"591\" alt=\"image\" src=\"https://user-images.githubusercontent.com/23729423/165990388-7e953a83-8658-41c3-ab7a-85c4c4bedf5e.png\"\u003e\n\n## Libraries\n- ruby 2.7.4\n- rails 7.0.2\n- sqlite3 1.4\n- httparty 0.20.0\n- figaro 1.2\n- whenever 1.0\n- chartkick 4.1\n- groupdate 6.1\n\n## Setup\n\n1. Clone this repository\n```git clone https://github.com/gogvale/solar_panel_stats/```\n2. Inside the project run:\n```sh\n$ rails db:setup\n```\n3. Modify `config/application.yml` with the following info:\n```yml\ndevelopment:\n  solar_panel_address: \u003csolar_panel_url\u003e/status.html\n  solar_panel_username: \u003cusername\u003e\n  solar_panel_password: \u003cpassword\u003e\n```\n4. Run the following command to add cronjobs:\n```sh\n$ whenever --update-crontab\n```\n5. If necessary, modify the crontab with `crontab -e` in order to enable `root` to run the rails app, mine is as following:\n```crontab\n# m h  dom mon dow   command\n@reboot rbenv sudo /home/gogvale/solar_panel/bin/rails s -b 0.0.0.0 -p 80\n\n# Begin Whenever generated tasks for: /home/gogvale/solar_panel/config/schedule.rb at: 2022-04-28 20:51:44 -0500\n0,15,30,45 * * * * /bin/bash -l -c 'cd /home/gogvale/solar_panel \u0026\u0026 rbenv exec rails runner -e development '\\''GetPowerGenerationJob.perform_now'\\'''\n\n# End Whenever generated tasks for: /home/gogvale/solar_panel/config/schedule.rb at: 2022-04-28 20:51:44 -0500\n```\n6. Debugging done with `postfix`, restart Raspberry for starting the server by the cronjob\n\n\n## Screens\n\n\u003cfigcaption\u003eDashboard\u003c/figcaption\u003e\n\n![image](https://user-images.githubusercontent.com/23729423/165990953-0d03d9d9-7f33-455e-b0c0-02e521d65c52.png)\n\n\u003cfigcaption\u003eCollected data\u003c/figcaption\u003e\n\n![telegram-cloud-photo-size-1-5141149710025861611-y](https://user-images.githubusercontent.com/23729423/165990874-044f07e0-bff4-409a-aaad-591c6f82f242.jpg)\n\n\u003cfigcaption\u003eSolar Panel Interface Stats\u003c/figcaption\u003e\n\n![telegram-cloud-photo-size-1-5141149710025861612-x](https://user-images.githubusercontent.com/23729423/165990478-376461b5-e932-4efa-a466-bddee290c1a3.jpg)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgogvale%2Fsolar_panel_stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgogvale%2Fsolar_panel_stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgogvale%2Fsolar_panel_stats/lists"}