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

[DNM] add osprey electronic hotspots (ingenious tech) #1207

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
7 changes: 6 additions & 1 deletion src/makers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ import freedomfi from './freedomfi'
import hummingbird from './hummingbird'
import merryIoT from './merryIoT'
import milesight from './milesight'
import deepernetwork from './deepernetwork'
import deepernetwork from './deepernetwork'
import ospreyElectronics from './ospreyElectronics'
import { LangType, supportedLangs } from '../utils/i18n/i18nTypes'
import { HotspotMakerLangField } from './hotspotMakerTypes'

Expand All @@ -48,6 +49,7 @@ export const Makers: Record<string, { id: number; supportEmail: string }> = {
merryIoT,
milesight,
deepernetwork,
ospreyElectronics,
}

export const AntennaModels = {
Expand Down Expand Up @@ -75,6 +77,7 @@ export const AntennaModels = {
...merryIoT.antennas,
...milesight.antennas,
...deepernetwork.antennas,
...ospreyElectronics.antennas,
}

export const HotspotMakerModels = {
Expand All @@ -100,6 +103,7 @@ export const HotspotMakerModels = {
...merryIoT.hotspots,
...milesight.hotspots,
...deepernetwork.hotspots,
...ospreyElectronics.hotspots,
}

export type HotspotType = keyof typeof HotspotMakerModels
Expand Down Expand Up @@ -138,3 +142,4 @@ export const getMakerSupportEmail = (makerId?: number): string => {
const makerKey = Object.keys(Makers).find((m) => Makers[m].id === makerId)
return makerKey ? Makers[makerKey].supportEmail : '[email protected]'
}

13 changes: 13 additions & 0 deletions src/makers/ospreyElectronics/antennas.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { MakerAntenna } from '../antennaMakerTypes'

const ELECTRONICS_HOTSPOT_US = {
name: 'Osprey Electronics Hotspot (US 915)',
gain: 1.2,
} as MakerAntenna

const ELECTRONICS_HOTSPOT_EU = {
name: 'Osprey Electronics Hotspot (EU 868)',
gain: 2.3,
} as MakerAntenna

export default { ELECTRONICS_HOTSPOT_US, ELECTRONICS_HOTSPOT_EU }
32 changes: 32 additions & 0 deletions src/makers/ospreyElectronics/hotspots.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import HotspotIcon from './icon.svg'
import { MakerHotspot } from '../hotspotMakerTypes'
import ANTENNAS from './antennas'

const OspreyHotspotBLE = {
name: 'Osprey Electronics Hotspot',
icon: HotspotIcon,
onboardType: 'BLE',
translations: {
en: {
diagnostic:
'<b><white>Diagnostic support allows Osprey Electronic to identify issues with your Hotspot in a secure way.</white></b>\n\n Osprey Electronic will never have access to private keys and will only ever be able to access your Hotspot and not any other devices on your Network.\n\nIf you would like to opt-out of diagnostic support please email <purple><b>[email protected]</b></purple> from the email used to purchase the Hotspot.',
power: [
'Plug in the power cable as described in the user manual.',
'',
],
bluetooth: [
'There is no pairing button on the Osprey Electronic Hotspot Miner.',
'Bluetooth is automatically enabled for 5 minutes after the Osprey Electronic Hotspot Miner is powered on.\n\nHotspot can take up to 1 minute to fully boot up.',
],
},
ja: {},
ko: {},
zh: {},
},
antenna: {
us: ANTENNAS.ELECTRONICS_HOTSPOT_US,
default: ANTENNAS.ELECTRONICS_HOTSPOT_EU,
},
} as MakerHotspot

export default { OspreyHotspotBLE }
Loading