Ne0hlithic
New member
- Joined
- Nov 17, 2014
- Messages
- 2
Hi all. I've discovered a bit of arcane knowledge that I wanted document here and share in case some might find it useful.
I wanted to achieve the following behavior with my 2012 SL:
1) to begin charging automatically whenever I plugged in
2) to only charge to 80% so that the battery spends the majority of its time at this level
3) to charge from 80% to 100% shortly before leaving for work on weekdays
My reasoning is that I want to minimize the amount of time the battery is sitting at 100% and warm the battery a bit before departing for better performance in the cold. Setting this up with the charging timers wasn't possible due to the limitation that you can only set one timer per day. I was charging to 80% overnight and increasing to 100% manually by using the app when I woke up in the morning, but wanted to automate the process and start the charging a little earlier than that. Another option was to set a 100% timer that only ran in the a.m. hours, but this left the car uncharged if I decided suddenly that I needed to go somewhere at night before the charging started.
The answer I found was to use the CarWings Portal at leafic.com as I found here: http://www.mynissanleaf.com/viewtopic.php?p=104160. Using that, I could send commands (like begin charging) via CarWings non-interactively by visiting the webportal using a web address that looked like:
www.leafic.com/cwportal/index.php?username=USER&password=PASS&a=startcharge
Once that was set up I wrote a script on my computer that loads that page (via cURL) and set up the script to run every weekday at 0600. The script could easily be modified to only run in certain months, only at certain temperatures, or whatever else.
I wanted to achieve the following behavior with my 2012 SL:
1) to begin charging automatically whenever I plugged in
2) to only charge to 80% so that the battery spends the majority of its time at this level
3) to charge from 80% to 100% shortly before leaving for work on weekdays
My reasoning is that I want to minimize the amount of time the battery is sitting at 100% and warm the battery a bit before departing for better performance in the cold. Setting this up with the charging timers wasn't possible due to the limitation that you can only set one timer per day. I was charging to 80% overnight and increasing to 100% manually by using the app when I woke up in the morning, but wanted to automate the process and start the charging a little earlier than that. Another option was to set a 100% timer that only ran in the a.m. hours, but this left the car uncharged if I decided suddenly that I needed to go somewhere at night before the charging started.
The answer I found was to use the CarWings Portal at leafic.com as I found here: http://www.mynissanleaf.com/viewtopic.php?p=104160. Using that, I could send commands (like begin charging) via CarWings non-interactively by visiting the webportal using a web address that looked like:
www.leafic.com/cwportal/index.php?username=USER&password=PASS&a=startcharge
Once that was set up I wrote a script on my computer that loads that page (via cURL) and set up the script to run every weekday at 0600. The script could easily be modified to only run in certain months, only at certain temperatures, or whatever else.