ElectricMotorcycleForum.com

  • November 25, 2024, 05:40:47 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

Electric Motorcycle Forum is live!

Pages: 1 2 [3] 4 5 ... 8

Author Topic: SR/F App (NextGen) - API  (Read 10824 times)

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #30 on: November 07, 2019, 02:48:46 PM »

Nice Remmie and Steven! I just realised my data didn't look right cause I picked the date it was delivered, ready at the dealer but I only picked it up a month later :-). Glad to see it working. 
Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

stevenh

  • Sr. Member
  • ****
  • Posts: 398
  • Newington NH
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #31 on: November 07, 2019, 09:02:18 PM »

FYI, when I query for two days, I just get the first one.  I backed my app off to just doing one day at a time and it gets all the data.

Steve
Logged
2020 SR/F Premium
2022 Ioniq 5 SEL

remmie

  • Sr. Member
  • ****
  • Posts: 318
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #32 on: November 07, 2019, 09:15:59 PM »

I think that’s because you don’t specify a time and it assumes a time of 0:00 for both.

Then you ‘think’ you query 2 days but in reality you query just one. 20191101 and 20191102 would be interpreted as 0:00 on nov 1st up to 0:00 on nov 2nd which is exactly 1 day instead of 2

When I downloaded my logs I entered 20191101 as start and 20191103 as end date and got 2 days worth of data, for November 1st and November 2nd

By adding four digits for time (201911010800 for 8 am November 1st 2019) you can even specify timeframes per day
Logged
Current : Red Premium Zero SR/F (ordered May 25, delivered August 23 2019) with Rapid charger for 12kW charging
Former : White Zero SR 2018 ZF14.4 kWh (17.500 km)
Former : Black Zero SR 2014 ZF11.4 kWh (25.000 km)
SR's outfitted with Homemade "Supercharger" 6x eltek Flatpack S (12 kW)

remmie

  • Sr. Member
  • ****
  • Posts: 318
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #33 on: November 07, 2019, 09:17:30 PM »

By the way, Hans, if you could incorporate Stevens query for dowloading logs into your app that would be a very nice addition to your app  ;D
Logged
Current : Red Premium Zero SR/F (ordered May 25, delivered August 23 2019) with Rapid charger for 12kW charging
Former : White Zero SR 2018 ZF14.4 kWh (17.500 km)
Former : Black Zero SR 2014 ZF11.4 kWh (25.000 km)
SR's outfitted with Homemade "Supercharger" 6x eltek Flatpack S (12 kW)

stevenh

  • Sr. Member
  • ****
  • Posts: 398
  • Newington NH
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #34 on: November 07, 2019, 10:44:56 PM »

I think that’s because you don’t specify a time and it assumes a time of 0:00 for both.

Then you ‘think’ you query 2 days but in reality you query just one. 20191101 and 20191102 would be interpreted as 0:00 on nov 1st up to 0:00 on nov 2nd which is exactly 1 day instead of 2

When I downloaded my logs I entered 20191101 as start and 20191103 as end date and got 2 days worth of data, for November 1st and November 2nd

By adding four digits for time (201911010800 for 8 am November 1st 2019) you can even specify timeframes per day

Yes, I was using just the day as in 20191101 -> 20192203 and I just got data for 20191101 in my case.  If I queried 20191101->20191102, then 20191102->20191103 I got both days data...  Good stuff...

Steve
Logged
2020 SR/F Premium
2022 Ioniq 5 SEL

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #35 on: November 15, 2019, 09:59:47 PM »

iOS version is getting there, I have the requests but still have to make the proper layout

Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #36 on: November 19, 2019, 02:41:35 AM »

Finally Apple approved my zero app, available from https://apps.apple.com/be/app/zerong/id1488172044

Again it's open source so feel free to contribute, even by just creating feature requests! Check project website here https://bitbucket.org/cappelleh/zeronextgen/src/master/

I already noticed some issues with dark mode so I'll be fixing those. I'm and Android developer but an iPhone user so I'll be using the iOS version myself.

Some things coming soon are history queries, reference manual, maybe a range estimator and customizable notifications.
Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

BrianTRice@gmail.com

  • Unofficial Zero Manual Editor
  • Hero Member
  • *****
  • Posts: 4014
  • Nerdy Adventurer
    • View Profile
    • Personal site
Re: SR/F App (NextGen) - API
« Reply #37 on: November 19, 2019, 03:34:44 AM »

Nice work! I know what a hassle it is getting Apple's approval.

I'll see whether I can contribute, once I have an SR/F-ish bike to test with.
Logged
Current: 2020 DSR, 2012 Suzuki V-Strom
Former: 2016 DSR, 2013 DS

remmie

  • Sr. Member
  • ****
  • Posts: 318
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #38 on: November 19, 2019, 04:16:47 AM »

Excellent work Hans,

I can confirm it works when I fill in my userdata :)
Unfortunately I don't think I'm able to contribute to the coding itself.
The dark mode is indeed not quite dark LOL  (as you already explained)

Keep up the good work :)
Logged
Current : Red Premium Zero SR/F (ordered May 25, delivered August 23 2019) with Rapid charger for 12kW charging
Former : White Zero SR 2018 ZF14.4 kWh (17.500 km)
Former : Black Zero SR 2014 ZF11.4 kWh (25.000 km)
SR's outfitted with Homemade "Supercharger" 6x eltek Flatpack S (12 kW)

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #39 on: November 21, 2019, 02:25:53 AM »

dark mode should be fixed now. I'm finishing up location and range estimator. Next I'll work on the custom notifications and then I can look into getting a history query on the map.
Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #40 on: November 23, 2019, 06:32:55 PM »

And another update pending. This time location on map and range estimator are in place.

Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

remmie

  • Sr. Member
  • ****
  • Posts: 318
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #41 on: November 23, 2019, 08:04:33 PM »

Excellent addition Hans,

Maybe you could also show the range on the map by projecting a circle with the midpoint on the current location and the range radius projected around it. This would represent the maximum where you could go. And then you can instantly see whether you can make your destination or if you need to conserve power if it is right at the edge of the circle

something like this :


another improvement possibility : My street adress is cut off short while there is space to the left to show the entire adress :)
Logged
Current : Red Premium Zero SR/F (ordered May 25, delivered August 23 2019) with Rapid charger for 12kW charging
Former : White Zero SR 2018 ZF14.4 kWh (17.500 km)
Former : Black Zero SR 2014 ZF11.4 kWh (25.000 km)
SR's outfitted with Homemade "Supercharger" 6x eltek Flatpack S (12 kW)

Hans2183

  • Sr. Member
  • ****
  • Posts: 468
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #42 on: November 23, 2019, 09:06:26 PM »

The address issue is resolved, or at least improved in this pending update.

That range circle on map is a great idea! I'll implement that
Logged
2021 Energica SS9+ 21.5kWh
--- Belgium ---

Crissa

  • Hero Member
  • *****
  • Posts: 3144
  • Centauress
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #43 on: November 24, 2019, 06:34:03 AM »

I'm not sure how good range circles would be, since because of roads things can be weird places.  Scotts Valley (about six miles from me) is a 20% round trip but Santa Cruz (more than ten miles from me) is a 25% round trip.

A circle is a start, I suppose.  I'd kinda want pins on the map telling me how far (how much juice I used) I really did go so I'd identify which towns are how much percent from me in total.

That's sorta what I'm doing now?  It takes me n% to go from waypoint one to to waypoint two.  So, 25% charge to make it from the bottom to the top of the hill (that's what we call going over the mountains from Santa Cruz to San Jose) but only 10% back down.  45% to get from home to anywhere I've gone in San Jose so far (I've gone as far as downtown).

A way to just have the app track that would be... Well, I don't have an SR/F, but knowing how much a mountain pass takes is kinda key to riding electric, right?

-Crissa
Logged
2014 Zero S ZF8.5

remmie

  • Sr. Member
  • ****
  • Posts: 318
    • View Profile
Re: SR/F App (NextGen) - API
« Reply #44 on: November 24, 2019, 11:03:57 PM »

a range circle certainly isn't the "holy grail" of projecting what places you can reach. In fact, you would normally never reach the edge of the circle because roads by definition are not straight. Also the range is so dependent on road type, elevation but mainly on speed that it is impossible to have any accuracy in a range circle. Also, when you're on one side of a canyon and want to get to the other side (say 2 km away) it could take you more than 50 km of roads before you could get there.

But it gives you an IDEA of how far you could go at a single glance. And it's fairly easy to implement (I think) and I think it is a nice feature :)

The website below used to have a feature where you could give in a position on the map and a range and it would calculate the given range on all roads availlable in all directions. That was much more accurate in seeing where you could go with a certain range. Unfortunately google prices for such request were too high at a certain point and he had to stop the service. in a nutshell it was :  "Instead of a radius as the crow flies, can you do a radius as the car drives"

https://www.freemaptools.com/how-far-can-i-travel.htm
Logged
Current : Red Premium Zero SR/F (ordered May 25, delivered August 23 2019) with Rapid charger for 12kW charging
Former : White Zero SR 2018 ZF14.4 kWh (17.500 km)
Former : Black Zero SR 2014 ZF11.4 kWh (25.000 km)
SR's outfitted with Homemade "Supercharger" 6x eltek Flatpack S (12 kW)
Pages: 1 2 [3] 4 5 ... 8