[Ovmsdev] Fireplace app
sharkcow
sharkcow at gmx.de
Tue Dec 29 03:27:02 HKT 2020
Thanks, I was just trying to get started on them... but then I had to
update android studio :-/
And thanks for your comments which help me to learn how things should be
done :)
sharkcow
Am 28.12.20 um 20:12 schrieb Michael Balzer:
> I've found the issue: gradle build variables don't work correctly
> anymore. I need to set the target SDK version manually on both modules.
>
> Sharkcow, I'll merge your PR and do the changes I suggested.
>
>
> Am 28.12.20 um 19:57 schrieb Michael Balzer:
>> Sharkcow,
>>
>> according to your PR you want to add the service interval info to the
>> "S" (status) message. IMO that's not the most appropriate place. I'd
>> rather add this to the "F" message, as that's already carrying the
>> VIN, and also is meant to be updated less frequently.
>>
>> Also, we should pass through new fields to the Intent broadcast by
>> default, to avoid stumbling upon missing fields as with the HVAC. So
>> please add the respective puts to getBroadcastData().
>>
>> Can you do these changes short term?
>>
>> Regards,
>> Michael
>>
>>
>> Am 28.12.20 um 18:36 schrieb sharkcow:
>>> bad news for some might be good news for others... maybe that way my
>>> recent pull request has a chance of making it into the next version? :)
>>>
>>> Thanks,
>>>
>>> sharkcow
>>>
>>>
>>> Am 28.12.20 um 18:13 schrieb Michael Balzer:
>>>> Chris,
>>>>
>>>> I thought "of course, should be a matter of minutes"… and *zapp* came
>>>> Google along. It doesn't let me upload the new APK, keeps telling me it
>>>> needs to be targeted for API 29, which it is built for according to
>>>> Android Studio, but apparently the APK manifest keeps API 28 despite
>>>> all
>>>> my config efforts. I'll need to spend some more hours investigating
>>>> this… *sigh*
>>>>
>>>> Regards,
>>>> Michael
>>>>
>>>>
>>>> Am 28.12.20 um 16:54 schrieb Chris van der Meijden:
>>>>> Cool ...
>>>>>
>>>>> Could you perhaps compile a 3.17.3 with that one?
>>>>>
>>>>> Would also give me the new images "officially" :-)
>>>>>
>>>>> Thanx
>>>>>
>>>>> Chris
>>>>>
>>>>>
>>>>> Am Montag, den 28.12.2020, 16:31 +0100 schrieb Michael Balzer:
>>>>>> Done.
>>>>>>
>>>>>> Am 28.12.20 um 16:26 schrieb Michael Balzer:
>>>>>>> Chris,
>>>>>>>
>>>>>>> nice :-)
>>>>>>>
>>>>>>> Just checked: the App doesn't yet transmit the HVAC flag via the
>>>>>>> update intent, but that's really simple to add. I'll do that
>>>>>>> right now.
>>>>>>>
>>>>>>> Regards,
>>>>>>> Michael
>>>>>>>
>>>>>>>
>>>>>>> Am 28.12.20 um 14:53 schrieb Chris van der Meijden:
>>>>>>>> The app is up and running.
>>>>>>>>
>>>>>>>> https://github.com/devmarxx/OVMS-Fireplace
>>>>>>>>
>>>>>>>> This is still very, very beta. It just does what it needs to do,
>>>>>>>> without any checks on user entries or responses from the vehicle.
>>>>>>>>
>>>>>>>> But it works and makes me smile :-))
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>
>>>>>>>> Chris
>>>>>>>>
>>>>>>>>
>>>>>>>> Am Montag, den 28.12.2020, 11:15 +0100 schrieb Michael Balzer:
>>>>>>>>> Chris,
>>>>>>>>>
>>>>>>>>> TL;DR: simply add the command to execute after the "7," intro,
>>>>>>>>> e.g.
>>>>>>>>> "7,climatecontrol on".
>>>>>>>>>
>>>>>>>>> The SendCommand API was built around the V2 message protocol,
>>>>>>>>> so you
>>>>>>>>> need to send commands as MP commands, see
>>>>>>>>> https://docs.openvehicles.com/en/latest/protocol_v2/commands.html
>>>>>>>>> for
>>>>>>>>> a
>>>>>>>>> list. MP command code 7 passes standard text (former SMS) commands
>>>>>>>>> to
>>>>>>>>> the shell, that's what the Wiki example shows (for V2 command
>>>>>>>>> "STAT?").
>>>>>>>>>
>>>>>>>>> You can get the command response by listening to the CommandResult
>>>>>>>>> intent and reading the "cmd_data" extra. Be aware all command
>>>>>>>>> result
>>>>>>>>> will be sent as intents, so you need to check if a result matches
>>>>>>>>> your
>>>>>>>>> command (could possibly be improved if needed).
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>> Michael
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Am 28.12.20 um 10:34 schrieb Chris van der Meijden:
>>>>>>>>>> I'm writing a little Android app with Cordova to do something
>>>>>>>>>> similar
>>>>>>>>>> as Tesla's "Romance mode". The app will turn climate control
>>>>>>>>>> on or
>>>>>>>>>> off
>>>>>>>>>> and will show a burning log fire while the car is heating.
>>>>>>>>>>
>>>>>>>>>> As cordova uses HTML and Javascript you can see an online preview
>>>>>>>>>> here:
>>>>>>>>>>
>>>>>>>>>> http://www.arachnon.de/fire/test.html
>>>>>>>>>>
>>>>>>>>>> When you click or tap on the fireplace the countdown for turning
>>>>>>>>>> "climatecontrol" on ticks down for 17 seconds. After that the
>>>>>>>>>> fire
>>>>>>>>>> starts "moving" and on webkit browsers you will hear a tickling
>>>>>>>>>> sound.
>>>>>>>>>> When you click or tap again the tickling will stop and you
>>>>>>>>>> will get
>>>>>>>>>> a
>>>>>>>>>> static image again. You will also get a red bar for 10 seconds,
>>>>>>>>>> turning
>>>>>>>>>> "climatecontrol" off and blocking any new commands for those 10
>>>>>>>>>> seconds.
>>>>>>>>>>
>>>>>>>>>> When you click or tap on the yellow bar you will be able to store
>>>>>>>>>> your
>>>>>>>>>> OVMS credentials (vehicle ID and password). Cave: this is done in
>>>>>>>>>> plain
>>>>>>>>>> text with window.localstorage so the password will be plain
>>>>>>>>>> readable
>>>>>>>>>> from the local storage within the browser on your device.
>>>>>>>>>>
>>>>>>>>>> The credentials are needed to communicate with the Android OVMS
>>>>>>>>>> app, as
>>>>>>>>>> I am planning to use the "SendCommand Broadcast Intent data"
>>>>>>>>>> functionality of the OVMS app. I should be able to do that via
>>>>>>>>>> this
>>>>>>>>>> cordova plugin:
>>>>>>>>>>
>>>>>>>>>> https://github.com/cordova-misc/cordova-webintent
>>>>>>>>>>
>>>>>>>>>> I read the OVMS "SendCommand Broadcast Intent data" documentation
>>>>>>>>>> here:
>>>>>>>>>>
>>>>>>>>>> https://github.com/openvehicles/Open-Vehicle-Android/wiki/SendComma
>>>>>>>>>>
>>>>>>>>>> nd-B
>>>>>>>>>> roadcast-Intent-data
>>>>>>>>>>
>>>>>>>>>> but it is not clear to me, how I can initiate the "climatecontrol
>>>>>>>>>> on"
>>>>>>>>>> shell command over the broadcast. So would like to ask for
>>>>>>>>>> help on
>>>>>>>>>> that
>>>>>>>>>> :-)
>>>>>>>>>>
>>>>>>>>>> Once the app is up and running it should be usable for any
>>>>>>>>>> vehicle
>>>>>>>>>> with
>>>>>>>>>> OVMS climate control implemented.
>>>>>>>>>>
>>>>>>>>>> Just a little gimmick. But fun :-))
>>>>>>>>>>
>>>>>>>>>> Regards
>>>>>>>>>>
>>>>>>>>>> Chris
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> OvmsDev mailing list
>>>>>>>>>> OvmsDev at lists.openvehicles.com
>>>>>>>>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>>>>>>>> _______________________________________________
>>>>>>>>> OvmsDev mailing list
>>>>>>>>> OvmsDev at lists.openvehicles.com
>>>>>>>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>>>>>>> _______________________________________________
>>>>>>>> OvmsDev mailing list
>>>>>>>> OvmsDev at lists.openvehicles.com
>>>>>>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> OvmsDev mailing list
>>>>>>> OvmsDev at lists.openvehicles.com
>>>>>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>>>>>
>>>>>> _______________________________________________
>>>>>> OvmsDev mailing list
>>>>>> OvmsDev at lists.openvehicles.com
>>>>>> <mailto:OvmsDev at lists.openvehicles.com>
>>>>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>>>>
>>>>> _______________________________________________
>>>>> OvmsDev mailing list
>>>>> OvmsDev at lists.openvehicles.com
>>>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>>>
>>>> --
>>>> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
>>>> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
>>>>
>>>>
>>>> _______________________________________________
>>>> OvmsDev mailing list
>>>> OvmsDev at lists.openvehicles.com
>>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>>>
>>> _______________________________________________
>>> OvmsDev mailing list
>>> OvmsDev at lists.openvehicles.com
>>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>>
>>
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.openvehicles.com
>> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>
> --
> Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
> Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
>
More information about the OvmsDev
mailing list