Skip to content

Smart-Van-2-0/com.robypomper.smartvan.jod_smart_van

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JOD Smart Van Distribution

This is the main repository for the JOD Smart Van distribution as part of the Smart Van Project.
It's based on the JODDistTMPL, so this repo follows his conventions.

Dist Name: JOD Smart Van
Dist Artifact: JOD_Smart_Van
Dist Version: 1.0.1

README | CHANGELOG | TODOs | LICENCE

This distribution represent a Smart Van object as defined from the Smart Van Project website.

As a first version, this distribution contains only the support to some of the Smart Van Specifications because it's still missing some firmware.
Actually, the JOD Smart Van includes following firmwares:

More details on JOD Smart Van distribution, the JOD Dist TMPL and the firmwares are available at the How it works page or directly on the distribution README.md file.

Build and run

This repo contains a JOD Dist TMPL distribution, so before run the JOD Smart Van agent, you must build it. To build a JOD Smart Van distribution you must run the build.sh script from the main repository dir.

When you build a JOD distribution, the script downloads the required version of the JOD daemon and all the specified firmwares as dependencies. Subsequently, it assembles the destination folder, including the files from the resources dir.

For development and testing purposes, you can build a development version using the configs/jod_dist_configs-DEV.sh configuration file. This version is set up to obtain firmware from folders on the local machine (e.g., ../com.robypomper.smartvan.fw.victron/) and execute them in simulation mode.

# Standard command
bash scripts/build.sh

# Build development version
bash scripts/build.sh configs/jod_dist_configs-DEV.sh

# Build with debug logs
DEBUG=true bash scripts/build.sh

After the build terminates, your JOD Smart Van distribution is ready into the build/JOD_Smart_Van/{VERSION} dir.

Now, you can deploy and run the built JOD Smart Van distribution. As described into the distribution's build/JOD_Smart_Vane/{VERSION}/README.md or into the usage page.

Otherwise, check the Run on development machine section to start an instance of JOD Smart Van that simulate the underlying hardware.

cd build/JOD_Smart_Van/{VERSION}
bash start.sh true
 >> type 'exit` to stop the JOD Smart Van instance

:::note Recommendation for Deployment: Choose the Standard Version for Smart Van Box deployment and Opt for the development version for local machine execution. :::

Develop

The development of the JOD Smart Van distribution involves downloading the source codes. In the case of building a development version, it is necessary to clone not only the JOD Smart Van project but also all the desired firmwares.

Once the source code is obtained, you can customize the distribution structure or add/update firmware to support new hardware. To build the distribution, follow the steps below. More information can be found in the Build JOD Smart Van section.

  1. Clone repositories: Clone the JOD Smart Van project repository and those of its related firmwares within the same folder. For a complete list of available firmwares, visit the Smart Van 2.0 Firmware page.
mkdir jod_sv_dev
cd jod_sv_dev
git clone git@github.com:Smart-Van-2-0/com.robypomper.smartvan.jod_smart_van.git
git clone git@github.com:Smart-Van-2-0/com.robypomper.smartvan.fw.victron.git
git clone git@github.com:Smart-Van-2-0/com.robypomper.smartvan.fw.sim7600.git
git clone git@github.com:Smart-Van-2-0/com.robypomper.smartvan.fw.upspack_v3.git
git clone git@github.com:Smart-Van-2-0/com.robypomper.smartvan.fw.sensehat.git
git clone git@github.com:Smart-Van-2-0/com.robypomper.smartvan.fw.ioexp.git
  1. Build JOD Smart Van distribution: Generate the JOD Smart Van distribution. If you are using the development configurations, then it will copy the firmwares from local folders. For more information, refer to the Build JOD Smart Van distribution section.
cd com.robypomper.smartvan.jod_smart_van.git
bash scripts/build.sh configs/jod_dist_configs-DEV.sh

Now you are free to customize your JOD Smart Van distribution. However, remember that for it to work seamlessly with the SV Mobile App, your customizations must adhere to the Smart Van specifications.

Collaborate

This project is part of the Smart Van Project, and it's published under an Open Source licence to allow the community to contribute to the project.

If you want to contribute to the project, you can start by reading the Contribution Guidelines page. Otherwise, you can clone current repository and start to customize your own JOD Smart Van distribution. Check out the project's structure and 'how to work on it', on the Development page.

About

The SmartVan Box as JOD Distribution

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors