This commit is contained in:
Roland Osborne 2022-10-26 15:15:52 -07:00
commit d582198596
22 changed files with 38 additions and 58 deletions

View File

@ -42,7 +42,7 @@ jobs:
- name: Export
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: webapp
path: net/web/build/*

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,4 @@
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/iconBackground"/>
<foreground android:drawable="@mipmap/ic_foreground"/>
</adaptive-icon>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -0,0 +1,3 @@
<resources>
<color name ='iconBackground'>#FFFFFF</color>
</resources>

View File

@ -39,29 +39,29 @@ These instructions assume you have the following setup:
Extract it to /usr/local:<br/>
tar -C /usr/local -xzf go1.19.linux-armv6l.tar.gz<br/>
## Step 5: setup databag paths
mkdir -p /var/lib/databag<br/>
mkdir -p /opt/databag/transform<br/>
cp /app/databag/net/container/transform/* /opt/databag/transform/<br/>
## Step 6: initialize the internal datbase
sqlite3 /var/lib/databag/databag.db "VACUUM;"<br/>
sqlite3 /var/lib/databag/databag.db "CREATE TABLE IF NOT EXISTS 'configs' ('id' integer NOT NULL UNIQUE,'config_id' text NOT NULL,'str_value' text,'num_value' integer,'bool_value' numeric,'bin_value' blob,PRIMARY KEY ('id'));"<br/>
sqlite3 /var/lib/databag/databag.db "CREATE UNIQUE INDEX IF NOT EXISTS 'idx_configs_config_id' ON 'configs'('config_id');"<br/>
sqlite3 /var/lib/databag/databag.db "insert into configs (config_id, str_value) values ('asset_path', '/var/lib/databag/');"<br/>
sqlite3 /var/lib/databag/databag.db "insert into configs (config_id, str_value) values ('script_path', '/opt/databag/transform/');"<br/>
## Step 7: clone and build the server
## Step 5: clone and build the server
mkdir /app<br/>
cd /app<br/>
git clone https://github.com/balzack/databag.git<br/>
cd /app/databag/net/server<br/>
/usr/local/go/bin/go build databag<br/>
## Step 6: setup databag paths
mkdir -p /var/lib/databag<br/>
mkdir -p /opt/databag/transform<br/>
cp /app/databag/net/container/transform/* /opt/databag/transform/<br/>
## Step 7: initialize the internal datbase
sqlite3 /var/lib/databag/databag.db "VACUUM;"<br/>
sqlite3 /var/lib/databag/databag.db "CREATE TABLE IF NOT EXISTS 'configs' ('id' integer NOT NULL UNIQUE,'config_id' text NOT NULL,'str_value' text,'num_value' integer,'bool_value' numeric,'bin_value' blob,PRIMARY KEY ('id'));"<br/>
sqlite3 /var/lib/databag/databag.db "CREATE UNIQUE INDEX IF NOT EXISTS 'idx_configs_config_id' ON 'configs'('config_id');"<br/>
sqlite3 /var/lib/databag/databag.db "insert into configs (config_id, str_value) values ('asset_path', '/var/lib/databag/');"<br/>
sqlite3 /var/lib/databag/databag.db "insert into configs (config_id, str_value) values ('script_path', '/opt/databag/transform/');"<br/>
## Step 8: download the webapp
// because the react toolchain isn't available for the pi zero, the webapp is build in a github action<br/>
Download webapp.zip from the most recent build:<br/>
https://github.com/balzack/databag/actions/runs/2981276524<br/>
https://github.com/balzack/databag/actions/runs/3332539686<br/>
SCP webapp.zip into the pi<br/>
Extract it into the web/build directory<br/>
mkdir /app/databag/net/web/build<br/>

View File

@ -8,53 +8,6 @@ Databag is committed to protecting your privacy as you use our service! We creat
Do not hesitate to contact us at github.com/balzack/databag if you have any questions or want to discuss this Policy. Capitalized terms used but not defined shall have the respective meanings given to them in the Terms.
Contents
Please visit each link to read the policy in full.
What Information We Collect
Lists the various types of information you voluntarily provide us, such as an email address or phone number.
How We Use Your Information
Describes how we use your information to provide you with our services, such as creating an account or hosting your data.
How We Share Your Information
Explains that we do not share your personally identifiable information with other third parties except to the extent that it is in furtherance of the Service, or when you choose to do so.
Storing Your Information
Policies on the storage and retention of your information, as well as security measures to safeguard your information.
Government Requests
How we will respond to governmental requests for your information.
Third-Party Services and Practices Are Beyond Our Control
Describes our lack of control over services we may utilize to deliver our services, such as a third-party hosting service or payment processor.
Retention
Explains our policy for retaining your data.
California Privacy Statement
A special policy for users in the State of California and their rights.
What Information We Collect
Information You Voluntarily Provide Us
In order to sign up for the Service, you must create an Account which requires you to provide us with various information that is, or may be, considered personally identifiable information.
To create an Account to access the Service, you will be required to create a username and password.
Optional Information You Voluntarily Provide Us