Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes the Anthias to Screenly migration script #1932

Merged
Show file tree
Hide file tree
Changes from 12 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,47 @@ During ideal conditions (Raspberry Pi 3 Model B+, class 10 SD card and fast inte
Go through the steps in [this documentation](/docs/balena-fleet-deployment.md)
to deploy Anthias on your own Balena fleet.

## Migrating assets from Anthias to Screenly

This feature is only available in devices running Raspberry Pi OS at the moment.

### Migrating from a device running Raspberry Pi OS (Lite)

To get started, SSH to your Raspberry Pi running Anthias. For instance:

```bash
ssh pi@raspberrypi
```

Go to the project root directory and create a Python virtual environment, if you haven't created one.

```bash
cd ~/screenly
python -m venv venv/
```

Activate the virtual environment. You need to do this everytime right before you run the script.

```bash
source ./venv/bin/activate
```

Install the dependencies required by the assets migration script.

```bash
pip install -r requirements/requirements.local.txt
```

Before running the script, you should prepare the following:
* Your Screenly API key
* Anthias username and password, if your device has basic authentication enabled

Run the assets migration script. Follow through the instructions & prompts carefully.

```bash
python tools/migrate-assets-to-screenly.py
```

## Issues and bugs

Do however note that we are still in the process of knocking out some bugs. You can track the known issues [here](https://github.com/Screenly/Anthias/issues). You can also check the discussions in the [Anthias forums](https://forums.screenly.io).
Expand Down
7 changes: 7 additions & 0 deletions ansible/roles/screenly/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,10 @@
path: "/etc/systemd/system/{{ item }}"
state: absent
with_items: "{{ deprecated_screenly_systemd_units }}"

- name: Remove the ngrok binary
ansible.builtin.file:
path: "/usr/local/bin/ngrok"
state: absent
owner: root
group: root
Binary file removed ansible/roles/tools/files/ngrok
Binary file not shown.
8 changes: 0 additions & 8 deletions ansible/roles/tools/tasks/main.yml

This file was deleted.

1 change: 0 additions & 1 deletion ansible/site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
- screenly
- network
- splashscreen
- tools
12 changes: 0 additions & 12 deletions docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,3 @@ server {
alias /data/screenly/static;
}
}

server {
# Only allow from localhost and Docker's CIDR
allow 172.16.0.0/12;
allow 172.0.0.1;
deny all;

server_name *.ngrok.io;
listen 80;
root /data/screenly_assets;
try_files $uri /data/screenly_assets$uri;
}
5 changes: 5 additions & 0 deletions requirements/requirements.local.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# vim: ft=requirements

click==8.1.7
requests==2.32.3
tenacity==8.4.1
218 changes: 0 additions & 218 deletions tools/assets-migration-to-screenly-pro.py

This file was deleted.

Loading
Loading