Conversation
|
Can one of the admins verify this patch? |
|
Also, please add the dpkg files so it will be packaged by CI:
Not sure if we need to add it to any meta package (last point from checklist), probably not as the vast majority of users out there won't have a supported car yet. |
Used hashin <package> for requirements.txt Added dpkg files for smartcar package
| Architecture: any | ||
| Depends: ${shlibs:Depends}, | ||
| ${misc:Depends}, | ||
| nymea-plugins-translations, |
There was a problem hiding this comment.
Latest nymea-plugins doesn't have a single translations package any more but every plugin will ship its own translations within the pluign package.
| @@ -0,0 +1,3 @@ | |||
| smartcar/integrationpluginsmartcar.json usr/lib/@DEB_HOST_MULTIARCH@/nymea/plugins/smartcar/ | |||
| smartcar/integrationpluginsmartcar.py usr/lib/@DEB_HOST_MULTIARCH@/nymea/plugins/smartcar/ | |||
| smartcar/requirements.txt usr/lib/@DEB_HOST_MULTIARCH@/nymea/plugins/smartcar/ | |||
There was a problem hiding this comment.
here, the .qm files need to be added
| "displayName": "Vehicle", | ||
| "id": "77ddd9f7-7c16-4bf3-bff0-c3a2208c8c66", | ||
| "createMethods": ["auto"], | ||
| "interfaces": ["battery"], |
There was a problem hiding this comment.
an "electricvehicle" interface exists nowadays which should be implemented in this one.
| pollTimers[thing.id] = threading.Timer(value, pollService, [thing.id]) | ||
| pollTimers[thing.id].start() | ||
|
|
||
| def createPollTimer(thing): |
There was a problem hiding this comment.
nymea's python api gained support for nymea.PluginTimer. No need to start own threads any more.
nymea-plugins pull request checklist:
Make sure the pull request's title is of format "Plugin name: Add support for xyz" or "New plugin: Plugin name"
Did you test the changes on hardware, if not (e.g. absence of required hardware), please mention a person to confirm it has been tested.
Did you update the plugin's README.md accordingly?
Did you update translations (
cd builddir && make lupdate)?If you added a new plugin, should it be added to nymea-plugins-all or nymea-plugins-maker?