Skip to content

Commit

Permalink
Bumping version to 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Mar 19, 2019
1 parent d9b0618 commit 8dd21a5
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
5 changes: 4 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Release Notes

## 1.1.16 - 2019-03-17
## 1.2.0 - 2019-03-19
* Update .NET Core to 2.2.3

## 1.1.16 - 2019-03-1
* Upgrade Raspbian

## 1.1.0 - 2019-01-20
Expand Down
7 changes: 5 additions & 2 deletions src/Client/ReleaseNotes.fs
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
module internal ReleaseNotes

let Version = "1.1.16"
let Version = "1.2.0"

let IsPrerelease = false

let Notes = """
# Release Notes
## 1.1.16 - 2019-03-17
## 1.2.0 - 2019-03-19
* Update .NET Core to 2.2.3
## 1.1.16 - 2019-03-1
* Upgrade Raspbian
## 1.1.0 - 2019-01-20
Expand Down
9 changes: 1 addition & 8 deletions src/PiServer/PiServer.fs
Original file line number Diff line number Diff line change
Expand Up @@ -104,19 +104,12 @@ let rfidLoop (dispatch,nodeServices:INodeServices) = task {
waiting <- false
}

let getMACAddress() =
NetworkInterface.GetAllNetworkInterfaces()
|> Seq.filter (fun nic ->
nic.OperationalStatus = OperationalStatus.Up &&
nic.NetworkInterfaceType <> NetworkInterfaceType.Loopback)
|> Seq.map (fun nic -> nic.GetPhysicalAddress().ToString())
|> Seq.tryHead

let init nodeServices : Model * Cmd<Msg> =
{ Playing = None
FirmwareUpdateInterval = TimeSpan.FromHours 1.
UserID =
getMACAddress()
Utils.getMACAddress()
|> Option.defaultValue "9bb2b109-bf08-4342-9e09-f4ce3fb01c0f" // TODO: load from some config
TagServer = "https://audio-hub.azurewebsites.net" // TODO: load from some config
Volume = 0.5 // TODO: load from webserver
Expand Down
11 changes: 11 additions & 0 deletions src/PiServer/Utils.fs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module Utils
open System.Net.NetworkInformation


let getMACAddress() =
NetworkInterface.GetAllNetworkInterfaces()
|> Seq.filter (fun nic ->
nic.OperationalStatus = OperationalStatus.Up &&
nic.NetworkInterfaceType <> NetworkInterfaceType.Loopback)
|> Seq.map (fun nic -> nic.GetPhysicalAddress().ToString())
|> Seq.tryHead
1 change: 1 addition & 0 deletions src/Server/Server.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<Compile Include="Giraffe.Websocket.fs" />
<Compile Include="..\Shared\Shared.fs" />
<Compile Include="AzureTable.fs" />
<Compile Include="Utils.fs" />
<Compile Include="TagHistorySocket.fs" />
<Compile Include="Server.fs" />
</ItemGroup>
Expand Down

0 comments on commit 8dd21a5

Please sign in to comment.